#ifndef INTERDIALOG_H
#define INTERDIALOG_H

#include <QDialog>

#include "qcustomplot.h"

//#include <QtCharts>
//#include <QChartView>
//#include <QChart>
//#include <QSplineSeries>
//#include <QHBoxLayout>
//#include <QValueAxis>

//QT_CHARTS_USE_NAMESPACE

// 文件操作
#include <QFileDialog>
#include <QFile>





namespace Ui {
class InterDialog;
}

class InterDialog : public QDialog
{
    Q_OBJECT

public:
    explicit InterDialog(QWidget *parent = 0);
    ~InterDialog();
    double lglr(double x[], double y[],int n,int t);

private slots:
    void on_pushButton_AddData_clicked();

    void on_pushButton_lglr_clicked();

    void on_pushButton_clear_clicked();

private:
    Ui::InterDialog *ui;
    QCPGraph * DataGraph;
    QCPGraph * lglrGraph;



    void buildChart(void);


};

#endif // INTERDIALOG_H
